package SpringBoot.__template.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 * @author 周成功
 *
 */
@RestController
public class D01Controller {
    @RequestMapping("/hello")
    public String hello(HttpServletRequest request, HttpServletResponse response) throws Exception {
        long time = System.currentTimeMillis();
        try {
            Thread.sleep(1*100);
        } catch (Exception e) {
            e.printStackTrace();
        }
        time = System.currentTimeMillis() - time;
        return "hello world！["+time+"]";
    }
}
